import request from '@/utils/request'

export default {
    // 分页条件查询
    getPageList(page,limit,searchObj) {
        return request({
            url: `/serviceEdu/courseFront/getCourseFrontList/${page}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },
    // 查询所有分类
    getAllSubject(){
        return request({
            url: `/serviceEdu/subject/getSubjects`,
            method: 'get'
        }) 
    },
    // 查询课程的详细信息
    getCourseInfoById(courseId){
        return request({
            url: `/serviceEdu/courseFront/getCourseInfoWebById/${courseId}`,
            method: 'get'
        })
    }
}